<?php

class Content_Bootstrap extends Zend_Application_Module_Bootstrap {

    protected function _initAutoloader() {
        return new Zend_Application_Module_Autoloader(array(
                    'namespace' => APPLICATION_NAMESPACE,
                    'basePath' => dirname(__FILE__),
                ));
    }

    protected function _initPlugins() {
        $this->bootstrap('frontcontroller');
        $front = $this->getResource('frontcontroller');

        $front->registerPlugin(new Zend_Controller_Plugin_ErrorHandler(array(
                    'module' => 'content',
                    'controller' => 'category',
                    'action' => 'index'
                )));
    }

}